<!DOCTYPE html>
<html lang=zh>
<head>
    <meta charset="utf-8">
    
    <title>idea启动优化 | sunny|博客</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="&amp;nbsp;&amp;nbsp;&amp;nbsp;IDEA 全称IntelliJ IDEA，是java语言开发的集成环境，IntelliJ在业界被公认为最好的java开发工具之一，尤其在智能代码助手、代码自动提示、重构、J2EE支持、Ant、JUnit、CVS整合、代码审查、 创新的GUI设计等方面的功能可以说是超常的。IDEA是JetBrains公司的产品，这家公司总部位于捷克共和国的首都布拉格，开发人员">
<meta name="keywords" content="idea,软件">
<meta property="og:type" content="article">
<meta property="og:title" content="idea启动优化">
<meta property="og:url" content="http://sunny9.gitee.io/2017/06/27/idea启动优化/index.html">
<meta property="og:site_name" content="sunny|博客">
<meta property="og:description" content="&amp;nbsp;&amp;nbsp;&amp;nbsp;IDEA 全称IntelliJ IDEA，是java语言开发的集成环境，IntelliJ在业界被公认为最好的java开发工具之一，尤其在智能代码助手、代码自动提示、重构、J2EE支持、Ant、JUnit、CVS整合、代码审查、 创新的GUI设计等方面的功能可以说是超常的。IDEA是JetBrains公司的产品，这家公司总部位于捷克共和国的首都布拉格，开发人员">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2017-07-11T06:33:35.676Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="idea启动优化">
<meta name="twitter:description" content="&amp;nbsp;&amp;nbsp;&amp;nbsp;IDEA 全称IntelliJ IDEA，是java语言开发的集成环境，IntelliJ在业界被公认为最好的java开发工具之一，尤其在智能代码助手、代码自动提示、重构、J2EE支持、Ant、JUnit、CVS整合、代码审查、 创新的GUI设计等方面的功能可以说是超常的。IDEA是JetBrains公司的产品，这家公司总部位于捷克共和国的首都布拉格，开发人员">
    

    

    
        <link rel="icon" href="./favicon.ico" />
    

    <link rel="stylesheet" href="./libs/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="./libs/open-sans/styles.css">
    <link rel="stylesheet" href="./libs/source-code-pro/styles.css">

    <link rel="stylesheet" href="./css/style.css">

    <script src="./libs/jquery/2.1.3/jquery.min.js"></script>
    
    
        <link rel="stylesheet" href="./libs/lightgallery/css/lightgallery.min.css">
    
    
        <link rel="stylesheet" href="./libs/justified-gallery/justifiedGallery.min.css">
    
    
    
    


</head>

<body>
    <div id="container">
        <header id="header">
    <div id="header-main" class="header-inner">
        <div class="outer">
            <a href="./" id="logo">
                <i class="logo"></i>
                <span class="site-title">sunny|博客</span>
            </a>
            <nav id="main-nav">
                
                    <a class="main-nav-link" href="./.">首页</a>
                
                    <a class="main-nav-link" href="./archives">归档</a>
                
                    <a class="main-nav-link" href="./tags">标签</a>
                
            </nav>
            
                
                <nav id="sub-nav">
                    <div class="profile" id="profile-nav">
                        <a id="profile-anchor" href="javascript:;">
                            <img class="avatar" src="./images/logo.png" />
                            <i class="fa fa-caret-down"></i>
                        </a>
                    </div>
                </nav>
            
            <div id="search-form-wrap">

    <form class="search-form">
        <input type="text" class="ins-search-input search-form-input" placeholder="搜索" />
        <button type="submit" class="search-form-submit"></button>
    </form>
    <div class="ins-search">
    <div class="ins-search-mask"></div>
    <div class="ins-search-container">
        <div class="ins-input-wrapper">
            <input type="text" class="ins-search-input" placeholder="想要查找什么..." />
            <span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
        </div>
        <div class="ins-section-wrapper">
            <div class="ins-section-container"></div>
        </div>
    </div>
</div>
<script>
(function (window) {
    var INSIGHT_CONFIG = {
        TRANSLATION: {
            POSTS: '文章',
            PAGES: '页面',
            CATEGORIES: '分类',
            TAGS: '标签',
            UNTITLED: '(未命名)',
        },
        ROOT_URL: './',
        CONTENT_URL: './content.json',
    };
    window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>
<script src="./js/insight.js"></script>

</div>
        </div>
    </div>
    <div id="main-nav-mobile" class="header-sub header-inner">
        <table class="menu outer">
            <tr>
                
                    <td><a class="main-nav-link" href="./.">首页</a></td>
                
                    <td><a class="main-nav-link" href="./archives">归档</a></td>
                
                    <td><a class="main-nav-link" href="./tags">标签</a></td>
                
                <td>
                    
    <div class="search-form">
        <input type="text" class="ins-search-input search-form-input" placeholder="搜索" />
    </div>

                </td>
            </tr>
        </table>
    </div>
</header>

        <div class="outer">
            
                

<!-- 左边卡片 -->
<aside id="profile">
    <div class="inner profile-inner">
        <div class="base-info profile-block">
            <img id="avatar" src="./images/logo.png" />
            <h2 id="name">sunny</h2>
            <h3 id="title">java &amp; js</h3>
            <span id="location"><i class="fa fa-map-marker"></i>中国 - 山西</span>
            <a id="follow" target="_blank" href="https://github.com/zhaoyunxing92">关注我</a>
        </div>
        <div class="article-info profile-block">
            <div class="article-info-block">
                2
                <span>文章</span>
            </div>
            <div class="article-info-block">
                3
                <span>标签</span>
            </div>
        </div>
    
        
        <div class="profile-block social-links">
            <table>
                <tr>
                    
                    
                    <td>
                        <a href="https://github.com/zhaoyunxing92" target="_blank" title="github" class=tooltip>
                            <i class="fa fa-github"></i>
                        </a>
                    </td>
                    
                </tr>
            </table>
        </div>
        
    </div>
</aside>

            
            <section id="main">

<article id="post-idea启动优化" class="article article-type-post" itemscope itemprop="blogPost">
    <div class="article-inner">
        
        
            <header class="article-header">
                
    
        <h1 class="article-title" itemprop="name">
            idea启动优化
        </h1>
    

                
                    <div class="article-meta">
                        
    <div class="article-date">
        <i class="fa fa-calendar"></i>
        <a href="./2017/06/27/idea启动优化/">
            <time datetime="2017-06-27T06:26:14.000Z" itemprop="datePublished">2017-06-27</time>
        </a>
    </div>


                        
    <div class="article-category">
    	<i class="fa fa-folder"></i>
        <a class="article-category-link" href="./categories/idea/">idea</a>
    </div>

                        
    <div class="article-tag">
        <i class="fa fa-tag"></i>
        <a class="tag-link" href="./tags/idea/">idea</a>, <a class="tag-link" href="./tags/软件/">软件</a>
    </div>

                    </div>
                
            </header>
        
    
        
        <div class="article-entry" itemprop="articleBody">  
               
        
           
            <!-- 
                <hr>
<p>　&nbsp;&nbsp;&nbsp;IDEA 全称IntelliJ IDEA，是java语言开发的集成环境，IntelliJ在业界被公认为最好的java开发工具之一，尤其在智能代码助
             -->
            
                <hr>
<p>　&nbsp;&nbsp;&nbsp;IDEA 全称IntelliJ IDEA，是java语言开发的集成环境，IntelliJ在业界被公认为最好的java开发工具之一，尤其在智能代码助手、代码自动提示、重构、J2EE支持、Ant、JUnit、CVS整合、代码审查、 创新的GUI设计等方面的功能可以说是超常的。IDEA是JetBrains公司的产品，这家公司总部位于捷克共和国的首都布拉格，开发人员以严谨著称的东欧程序员为主。</p>
<h1 id="JVM-参数优化"><a href="#JVM-参数优化" class="headerlink" title="JVM 参数优化"></a>JVM 参数优化</h1><p>进入idea安装目录的bin目录下，修改 <strong><code>idea.exe.vmoptions</code></strong> 配置文件内容如下：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div></pre></td><td class="code"><pre><div class="line">-Xms384m</div><div class="line">-Xms512m</div><div class="line">-Xmx750m</div><div class="line">-Xmn264m</div><div class="line">-XX:MaxPermSize=350m</div><div class="line">-XX:PermSize=128m</div><div class="line">-XX:ReservedCodeCacheSize=240m</div><div class="line">-Xverify:none</div><div class="line">-Xnoclassgc</div><div class="line">-XX:+UseParNewGC</div><div class="line">-XX:+UseConcMarkSweepGC</div><div class="line">-XX:SoftRefLRUPolicyMSPerMB=50</div><div class="line">-ea</div><div class="line">-server</div><div class="line">-Dsun.io.useCanonCaches=false</div><div class="line">-Dsun.awt.keepWorkingSetOnMinimize=true</div><div class="line">-Djava.net.preferIPv4Stack=true</div><div class="line">-XX:+HeapDumpOnOutOfMemoryError</div><div class="line">-XX:-OmitStackTraceInFastThrow</div></pre></td></tr></table></figure></p>
<h2 id="注"><a href="#注" class="headerlink" title="注:"></a>注:</h2><ul>
<li><code>-Xms512m</code> 设置初时的内存大小，提高Java程序的启动速度</li>
<li><code>-Xm750m</code> 设置最大内存数，提高该值，可以减少内存Garage收集的频率，提高程序性能</li>
<li><code>-Xverify:none</code> 关闭Java字节码验证，从而加快了类装入的速度，并使得在仅为验证目的而启动的过程中无需装入类，缩短了启动时间</li>
<li><code>-XX:+UseParNewGC</code> 使用并行收集算法</li>
<li><code>-server</code> 控制内存garage方式，这样你无需在花一到两分钟等待内存garage的收集</li>
<li><code>-Dsun.awt.keepWorkingSetOnMinimize=true</code>可以让IDEA最小化到任务栏时依然保持以占有的内存，当你重新回到IDEA，能够被快速显示，而不是由灰白的界面逐渐显现整个界面，加快回复到原界面的速度。</li>
</ul>
<h1 id="idea-properties-文件修改"><a href="#idea-properties-文件修改" class="headerlink" title="idea.properties 文件修改"></a>idea.properties 文件修改</h1><p> 进入idea安装目录的bin目录下，修改 <strong><code>idea.properties</code></strong>,这个文件默认是存放的配置是在C盘的，用的时间久了文件会越来越大<br> <figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div></pre></td><td class="code"><pre><div class="line">#---------------------------------------------------------------------</div><div class="line">#  我是放在跟我软件平级的目录</div><div class="line">#---------------------------------------------------------------------</div><div class="line"> idea.config.path=H:/IDE/IntelliJ IDEA/.IntelliJIdea/config</div><div class="line"></div><div class="line">#---------------------------------------------------------------------</div><div class="line"># Uncomment this option if you want to customize path to IDE system folder. Make sure you&apos;re using forward slashes.</div><div class="line">#---------------------------------------------------------------------</div><div class="line">idea.system.path=H:/IDE/IntelliJ IDEA/.IntelliJIdea/system</div><div class="line"></div><div class="line">#---------------------------------------------------------------------</div><div class="line"># Uncomment this option if you want to customize path to user installed plugins folder. Make sure you&apos;re using forward slashes.</div><div class="line">#---------------------------------------------------------------------</div><div class="line">idea.plugins.path=$&#123;idea.system.path&#125;/plugins</div><div class="line"></div><div class="line">#---------------------------------------------------------------------</div><div class="line"># Uncomment this option if you want to customize path to IDE logs folder. Make sure you&apos;re using forward slashes.</div><div class="line">#---------------------------------------------------------------------</div><div class="line">idea.log.path=$&#123;idea.system.path&#125;/log</div></pre></td></tr></table></figure></p>
<p>完事，继续敲代码去了。</p>

                  
            
        
        </div>
        <footer class="article-footer">
            <div class="share-container">



</div>

    <a data-url="http://sunny9.gitee.io/2017/06/27/idea启动优化/" data-id="cj9s8900p0000jkh2ics5mwqd" class="article-share-link"><i class="fa fa-share"></i>分享到</a>
<script>
    (function ($) {
        // Prevent duplicate binding
        if (typeof(__SHARE_BUTTON_BINDED__) === 'undefined' || !__SHARE_BUTTON_BINDED__) {
            __SHARE_BUTTON_BINDED__ = true;
        } else {
            return;
        }
        $('body').on('click', function() {
            $('.article-share-box.on').removeClass('on');
        }).on('click', '.article-share-link', function(e) {
            e.stopPropagation();

            var $this = $(this),
                url = $this.attr('data-url'),
                encodedUrl = encodeURIComponent(url),
                id = 'article-share-box-' + $this.attr('data-id'),
                offset = $this.offset(),
                box;

            if ($('#' + id).length) {
                box = $('#' + id);

                if (box.hasClass('on')){
                    box.removeClass('on');
                    return;
                }
            } else {
                var html = [
                    '<div id="' + id + '" class="article-share-box">',
                        '<input class="article-share-input" value="' + url + '">',
                        '<div class="article-share-links">',
                            '<a href="https://twitter.com/intent/tweet?url=' + encodedUrl + '" class="fa fa-twitter article-share-twitter" target="_blank" title="Twitter"></a>',
                            '<a href="https://www.facebook.com/sharer.php?u=' + encodedUrl + '" class="fa fa-facebook article-share-facebook" target="_blank" title="Facebook"></a>',
                            '<a href="http://pinterest.com/pin/create/button/?url=' + encodedUrl + '" class="fa fa-pinterest article-share-pinterest" target="_blank" title="Pinterest"></a>',
                            '<a href="https://plus.google.com/share?url=' + encodedUrl + '" class="fa fa-google article-share-google" target="_blank" title="Google+"></a>',
                        '</div>',
                    '</div>'
                ].join('');

              box = $(html);

              $('body').append(box);
            }

            $('.article-share-box.on').hide();

            box.css({
                top: offset.top + 25,
                left: offset.left
            }).addClass('on');

        }).on('click', '.article-share-box', function (e) {
            e.stopPropagation();
        }).on('click', '.article-share-box-input', function () {
            $(this).select();
        }).on('click', '.article-share-box-link', function (e) {
            e.preventDefault();
            e.stopPropagation();

            window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450');
        });
    })(jQuery);
</script>

            
    

        </footer>
    </div>
    
        
<nav id="article-nav">
    
    
        <a href="./2015/06/19/git命令使用/" id="article-nav-older" class="article-nav-link-wrap">
            <strong class="article-nav-caption">下一篇</strong>
            <div class="article-nav-title">Git常用命令</div>
        </a>
    
</nav>


    
</article>


    
    

</section>
            
                
<aside id="sidebar">
   
        
    <div class="widget-wrap">
        <h3 class="widget-title">最新文章</h3>
        <div class="widget">
            <ul id="recent-post" class="">
                
                    <li>
                        
                        <div class="item-thumbnail">
                            <a href="./2017/06/27/idea启动优化/" class="thumbnail">
    
    
        <span class="thumbnail-image thumbnail-none"></span>
    
</a>

                        </div>
                        
                        <div class="item-inner">
                            <p class="item-category"><a class="article-category-link" href="./categories/idea/">idea</a></p>
                            <p class="item-title"><a href="./2017/06/27/idea启动优化/" class="title">idea启动优化</a></p>
                            <p class="item-date"><time datetime="2017-06-27T06:26:14.000Z" itemprop="datePublished">2017-06-27</time></p>
                        </div>
                    </li>
                
                    <li>
                        
                        <div class="item-thumbnail">
                            <a href="./2015/06/19/git命令使用/" class="thumbnail">
    
    
        <span class="thumbnail-image thumbnail-none"></span>
    
</a>

                        </div>
                        
                        <div class="item-inner">
                            <p class="item-category"><a class="article-category-link" href="./categories/git/">git</a></p>
                            <p class="item-title"><a href="./2015/06/19/git命令使用/" class="title">Git常用命令</a></p>
                            <p class="item-date"><time datetime="2015-06-19T06:12:35.000Z" itemprop="datePublished">2015-06-19</time></p>
                        </div>
                    </li>
                
            </ul>
        </div>
    </div>

    
        
    <div class="widget-wrap">
        <h3 class="widget-title">分类</h3>
        <div class="widget">
            <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="./categories/git/">git</a><span class="category-list-count">1</span></li><li class="category-list-item"><a class="category-list-link" href="./categories/idea/">idea</a><span class="category-list-count">1</span></li></ul>
        </div>
    </div>

    
        
    <div class="widget-wrap">
        <h3 class="widget-title">归档</h3>
        <div class="widget">
            <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="./archives/2017/06/">六月 2017</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="./archives/2015/06/">六月 2015</a><span class="archive-list-count">1</span></li></ul>
        </div>
    </div>

    
        
    <div class="widget-wrap">
        <h3 class="widget-title">标签</h3>
        <div class="widget">
            <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="./tags/git/">git</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="./tags/idea/">idea</a><span class="tag-list-count">1</span></li><li class="tag-list-item"><a class="tag-list-link" href="./tags/软件/">软件</a><span class="tag-list-count">1</span></li></ul>
        </div>
    </div>

    
        
    <div class="widget-wrap">
        <h3 class="widget-title">标签云</h3>
        <div class="widget tagcloud">
            <a href="./tags/git/" style="font-size: 10px;">git</a> <a href="./tags/idea/" style="font-size: 10px;">idea</a> <a href="./tags/软件/" style="font-size: 10px;">软件</a>
        </div>
    </div>

    
        
    <div class="widget-wrap widget-list">
        <h3 class="widget-title">链接</h3>
        <div class="widget">
            <ul>
                
                    <li>
                        <a href="http://www.jianshu.com/u/c5a69d112958">简书</a>
                    </li>
                
            </ul>
        </div>
    </div>


    
    <div id="toTop" class="fa fa-angle-up"></div>
</aside>

            
        </div>
        <footer id="footer">
    <div class="outer">
        <div id="footer-info" class="inner">
            &copy; 2017 sunny<br>
            Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>. Theme by <a href="http://github.com/ppoffice">PPOffice</a>
        </div>
    </div>
</footer>
        


    
        <script src="./libs/lightgallery/js/lightgallery.min.js"></script>
        <script src="./libs/lightgallery/js/lg-thumbnail.min.js"></script>
        <script src="./libs/lightgallery/js/lg-pager.min.js"></script>
        <script src="./libs/lightgallery/js/lg-autoplay.min.js"></script>
        <script src="./libs/lightgallery/js/lg-fullscreen.min.js"></script>
        <script src="./libs/lightgallery/js/lg-zoom.min.js"></script>
        <script src="./libs/lightgallery/js/lg-hash.min.js"></script>
        <script src="./libs/lightgallery/js/lg-share.min.js"></script>
        <script src="./libs/lightgallery/js/lg-video.min.js"></script>
    
    
        <script src="./libs/justified-gallery/jquery.justifiedGallery.min.js"></script>
    
    



<!-- Custom Scripts -->
<script src="./js/main.js"></script>

    </div>
</body>
</html>